package com.shouhuobao.take.model;

import java.io.Serializable;

/**
 * Created by joker on 2017/5/25. 代收包裹列表对象
 */
public class ParcelBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6916266902925086562L;

	private String id;
	private String createTime;// ": "2017-05-25 16:54:50", 时间
	private String expressNumber;// ": "111",快递编号
	private String receiverName;// ": "ddd",
	private String receiverPhone;// ": "111"
	private String storageCode; //暂存编号
	private String expressCompanyName;
	private String checkCode;
	private String remark;
	private String takeTime;
	// 异常
	private String exceptionDesc;
	// 1到店-2取走-3超期
	private int status;

	public boolean isInput() {
		return status == 1;
	}

	public boolean isTaked() {
		return status == 2;
	}

	public boolean isOthers() {
		return status == 3;
	}

	public String getStorageCode() {
//		if(storageCode != null){
//			//"1-2345-901"
//			return new StringBuilder(storageCode).insert(5, "-").insert(1, "-").toString();
//		}
		return storageCode;
	}
	
	//
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getExpressNumber() {
		return expressNumber;
	}

	public void setExpressNumber(String expressNumber) {
		this.expressNumber = expressNumber;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}

	public String getExpressCompanyName() {
		return expressCompanyName;
	}

	public void setExpressCompanyName(String expressCompanyName) {
		this.expressCompanyName = expressCompanyName;
	}

	public String getCheckCode() {
		return checkCode;
	}

	public void setCheckCode(String checkCode) {
		this.checkCode = checkCode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getTakeTime() {
		return takeTime;
	}

	public void setTakeTime(String takeTime) {
		this.takeTime = takeTime;
	}

	public String getExceptionDesc() {
		return exceptionDesc;
	}

	public void setExceptionDesc(String exceptionDesc) {
		this.exceptionDesc = exceptionDesc;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getStatus() {
		return status;
	}

	public void setStorageCode(String storageCode) {
		this.storageCode = storageCode;
	}
}
